<script setup lang="ts">
import { PropType } from 'vue'
import type { DepartmentItem ,DepartmentUserItem} from "@/components/DepartmentTree/types";
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'

defineProps({
  currentRow: {
    type: Object as PropType<DepartmentUserItem>,
    default: () => undefined
  },
  detailSchema: {
    type: Array as PropType<DescriptionsSchema[]>,
    default: () => []
  }
})
</script>

<template>
  <Descriptions  direction="vertical" :schema="detailSchema" :data="currentRow || {}" />
</template>
